%==========================================================================
%=  This file is part of the Sound Restoration Project
%=  (c) Copyright Industrial Mathematics Institute
%=                University of South Carolina, Department of Mathematics
%=  ALL RIGHTS RESERVED
%=
%=  Author: Borislav Karaivanov
%==========================================================================

%==========================================================================
% List of the files on which this procedure depends:
%
% none
%
%==========================================================================

%==========================================================================
% The function "setUpDefaultProject" sets up a project structure assigning
% default values to some of the structure fields. Those can be later
% modified by the user if desired but otherwise provide reasonable ground
% for any unsophisticated user who does not want to delve into the inner
% workings of the optical sound extraction.
% INPUT: "factoryDefaultsStruct" is a factory defaults structure which
% holds generally reasonable default values for the parameters used in the
% optical sound extraction.
% OUTPUT: "projectStruct" returns the default project structure.
%==========================================================================
function projectStruct = setUpDefaultProject(factoryDefaultsStruct)

if (nargin < 1)
    projectStruct.scratchDir1 = 'C:\E\Scratch';
    projectStruct.workFile.indFieldLength = 6;
    projectStruct.workFile.fileExt = 'pgm';
    return;
end

projectStruct.scratchDir1 = factoryDefaultsStruct.scratchDir1;
projectStruct.workFile.indFieldLength = factoryDefaultsStruct.indFieldLength;
projectStruct.workFile.fileExt = factoryDefaultsStruct.workFileExt;

return;
% end of the function "setUpDefaultProject"
